<template>
  <!-- <div>hello header</div> -->
  <div class="header">
    <div class="header-left">
      <i class="iconfont icon-fanhui"></i>
    </div>
    <div class="header-input">
      <i class="iconfont icon-sousuo"></i>
      输入城市／景点／游玩主题
    </div>
    <div class="header-right">
      <router-link to="/city">
      {{city}}
      <i class="iconfont icon-jiantou"></i>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  props: ['city']
}
</script>

<style lang="stylus" scoped>
@import '~@/assets/stylus/varibles.styl'
  .header
    display: flex
    line-height: .86rem
    background: $bgColor;
    color: #fff
    font-size: .28rem
    .header-left
      width: .64rem
      float: left
      text-align: center
    .header-input
      flex: 1
      background: #fff
      border-radius: .1rem
      margin-top: .12rem
      height: .64rem
      margin-left: .2rem
      color: #ccc
      line-height: .64rem
      padding-left: .1rem
    .header-right
      width: 1.24rem
      float: right
      text-align: center
      a
        color: #fff
        text-decoration: none
      i {
        font-size: .24rem
      }
</style>
